<!--导航栏 响应式-->
<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">网上商城系统</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a ui-sref="index" href="#">首页 <span class="sr-only">(current)</span></a></li>
                <li><a ui-sref="index.store.item_list" ng-show="user.isShowStore">我的店铺</a></li>
                <!--
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>-->
            </ul>
            <!--
      <form class="navbar-form navbar-left">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
      </form>-->
            <ul class="nav navbar-nav navbar-right">
                <li ng-show="user.isShowLogin">
                    <ul class="nav navbar-nav">
                        <li><a href="javascript:void(0)" ng-click="login_signup('login')">登录</a></li>
                        <li><a href="javascript:void(0)" ng-click="login_signup('signup')">注册</a></li>
                    </ul>
                    <!--
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>-->
                </li>
                <li ng-show="user.isShowUser"><a href="javascript:void(0)" class="glyphicon glyphicon-user" ng-Mouseenter="menu_show();" ng-Mouseleave="menu_hide();" style="color: blue"><b>设置</b><span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu" id="user_menu" ng-mouseenter="menu_show();" ng-mouseleave="menu_hide();">
                    <li role="presentation"><a href="javascript:void(0)" ui-sref="index.edit_user">修改用户信息</a></li>
                	<li role="presentation"><a href="javascript:void(0)" ng-click="login_signup('login')">切换用户</a></li>
                	<li role="presentation"><a href="javascript:void(0)" ng-click="out()">安全退出</a></li>
                		
                	</ul>
                </li>
                &emsp;
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->

<!-- 登录框 -->
<div class="modal fade" id="login" aria-labelledby="myModalLabel"
	aria-hidden="true" style="overflow-x: hidden; overflow-y: auto;">
	<div class="modal-dialog ">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<button type="button" class="close" data-dismiss="modal"
					aria-hidden="true">&times;</button>
				<h3 ng-show="login">Log in</h3>
				<h3 ng-hide="login">Sign up</h3>
			</div>
			<div class="panel panel-default">
				<div class="panel-body">
					<form class="form-horizontal" role="form" name="myForm" novalidate>
						<div class="form-group">
							<input ng-model="user.act" type="hidden" /> <label
								class="col-sm-3 control-label">用户名</label>
							<div class="col-sm-9">
								<div class="col-md-7">
									<input type="text" class="form-control" id="user_name"
										ng-blur="proof();" name="user_name" ng-model="user.user_name"
										placeholder="请输入用户名" required>
								</div>
								<div class="col-md-5" style="color: {{color}}">
									<b>{{sucInfo}}</b> <span style="color: red"
										ng-show="myForm.user_name.$dirty && myForm.user_name.$invalid">
										<span ng-show="myForm.user_name.$error.required">用户名不能为空！</span>
									</span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">密&emsp;码</label>
							<div class="col-sm-9">
								<div class="col-md-7">
									<input type="password" class="form-control" id="password"
										name="password" ng-model="user.password" placeholder="请输入密码"
										required>
								</div>
								<div class="col-md-5">
									<span style="color: red"
										ng-show="myForm.password.$dirty && myForm.password.$invalid">
										<span ng-show="myForm.password.$error.required">密码不能为空！</span>
									</span> <span ng-hide="myForm.password.$invalid" style="color: blue"><b>✔</b></span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div style="text-align: center; color: red;" name="div">{{ansInfo}}</div>
							<div class="col-sm-offset-4 col-sm-10" ng-show="login">
								<button type="button" class="btn btn-primary"
									ng-disabled="myForm.user_name.$invalid || myForm.password.$invalid || log"
									ng-click="submits(login);">登录</button>
								&emsp; 还没账户，快速<a href="javascript:void(0)"
									ng-click="login_signup('signup')">注册</a>
							</div>
							<div class="col-sm-offset-4 col-sm-10" ng-hide="login">
								<button type="button" class="btn btn-primary"
									ng-disabled="myForm.user_name.$invalid || myForm.password.$invalid || log"
									ng-click="submits(signup);">注册</button>
								&emsp; 我有账户，去<a href="javascript:void(0)"
									ng-click="login_signup('login')">登录</a>
							</div>
							<!-- <div align="center"><a>记住密码</a></div> -->
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
